@import './variables.css';

/* 字幕管理容器 */
.subtitle-management-container {
  padding: var(--spacing-6);
  height: calc(100vh - 60px);
  box-sizing: border-box;
  background-color: var(--bg-color-page);
  display: flex;
  flex-direction: column;
}

/* 标签页容器 */
.tab-header-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-6);
}

/* 字幕标签页 */
.subtitle-tabs {
  flex: 1;
  height: 100%;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-color-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* 刷新按钮 */
.refresh-button {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.refresh-button:hover {
  background-color: var(--color-primary-dark);
  transform: rotate(180deg);
}

/* 视频播放器容器 */
.video-player-container {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--color-gray-900);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-6);
}

/* 视频播放器 */
.video-player {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* 自定义标签页样式 */
:deep(.el-tabs__header) {
  margin-bottom: 0;
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--border-color-light);
}

:deep(.el-tabs__nav) {
  border: none !important;
}

:deep(.el-tabs__item) {
  height: 50px;
  line-height: 50px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-color-secondary);
  transition: var(--transition-normal);
  border: none !important;
  padding: 0 var(--spacing-6);
}

:deep(.el-tabs__item:hover) {
  color: var(--color-primary);
}

:deep(.el-tabs__item.is-active) {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

:deep(.el-tabs__active-bar) {
  height: 3px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-primary);
}

:deep(.el-tabs__content) {
  padding: 0;
  height: calc(100% - 50px);
  overflow: hidden;
}

:deep(.el-tab-pane) {
  height: 100%;
  padding: var(--spacing-6);
  background-color: var(--color-white);
}

/* 字幕相关卡片 */
.subtitle-card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background-color: var(--color-white);
  margin-bottom: var(--spacing-6);
}

.subtitle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-4) var(--spacing-6);
  background: linear-gradient(to right, var(--color-primary-bg), var(--color-gray-50));
  border-bottom: 1px solid var(--border-color-light);
}

.subtitle-card-header-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color-primary);
}

.subtitle-card-content {
  padding: var(--spacing-4) var(--spacing-6);
}

/* 字幕表格 */
.subtitle-table {
  width: 100%;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

:deep(.subtitle-table .el-table__header) {
  background-color: var(--color-primary-bg);
}

:deep(.subtitle-table .el-table__header th) {
  background-color: var(--color-primary-bg);
  color: var(--text-color-primary);
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-3);
}

/* 操作按钮组 */
.action-buttons {
  display: flex;
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .subtitle-management-container {
    padding: var(--spacing-3);
  }
  
  .tab-header-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .refresh-button {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  :deep(.el-tabs__item) {
    padding: 0 var(--spacing-3);
    font-size: var(--font-size-sm);
  }
  
  :deep(.el-tab-pane) {
    padding: var(--spacing-3);
  }
  
  .subtitle-card-header {
    padding: var(--spacing-3) var(--spacing-4);
  }
  
  .subtitle-card-content {
    padding: var(--spacing-3) var(--spacing-4);
  }
}

/* Styles for fixed-height-card, card-header, etc. are now in child components */
/* Parent styles can be simplified if they are no longer directly styling those elements */

/* :deep(.el-card__body) might still be useful if you need to target something globally */ 